package com.example.springsecurityauth2jwtsso.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @description: 日期格式化工具类
 * @author: wutieping
 * @create: 2022-03-24 10
 */
public class DateUtil {

    /**
     * 获取当前日期格式化输出
     * @return
     */
    public static String getCurrentDateFormat(){
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String s = dateFormat.format(new Date());
        return s;
    }
}
